package com.summer.sqlSession;

import com.summer.pojo.Configuration;
import com.summer.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... params) throws Exception;

    Integer update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, ClassNotFoundException;

    Integer delete(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, ClassNotFoundException;

}
